package net.wanho.zx.zx_cms.controller;


import net.wanho.zx.pojo.cms.CmsSite;
import net.wanho.zx.zx_cms.service.CmsSiteService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class CmsSiteController {

    @Resource
    CmsSiteService cmsSiteService;

    @GetMapping("/cms/site/list/")
    public List<CmsSite> query(){
        return cmsSiteService.query();
    }

}
